package com.hzit.controller;

import com.hzit.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 类名：
 * 作者：WF
 * 功能：
 */
@Controller
@RequestMapping("/hello")
public class HelloController {

	@RequestMapping("/welcome")
	@RequiresPermissions("hello:welcome")
	public String hello(Model model){
		model.addAttribute("user","张三");
		return "welcome";   //真实的物理视图：  /WEB-INF/jsp/welcome.jsp
	}
}
